package timing.ukulele.project.persistent;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import timing.ukulele.persistent.model.BaseIdWorkerModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "办事信息")
@TableName("c_business")
public class Business extends BaseIdWorkerModel {
    @TableField("business_code")
    @ApiModelProperty(value = "业务唯一码")
    private String businessCode;

    @TableField("item_id")
    @ApiModelProperty("事项主键")
    private Long itemId;

    @TableField("item_code")
    @ApiModelProperty("事项编码")
    private String itemCode;

    @TableField("item_name")
    @ApiModelProperty("事项名称")
    private String itemName;

    @TableField("version")
    @ApiModelProperty("版本号")
    private Integer version;

    @TableField("form_id")
    @ApiModelProperty("表单ID")
    private Long formId;

    @TableField("form_instance")
    @ApiModelProperty("表单实例")
    private Long formInstance;

    @TableField("flow_id")
    @ApiModelProperty("流程ID")
    private Long flowId;

    @TableField("flow_instance")
    @ApiModelProperty("流程实例")
    private String flowInstance;

    @TableField("system_id")
    @ApiModelProperty("所属系统")
    private Long systemId;

    @TableField("starter")
    @ApiModelProperty("事项开启人")
    private String starter;
}
